package com.wzd.mphelper.mphelpertest.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzd.mphelper.mphelpertest.consts.SuffixPreConsts;
import com.wzd.mphelper.mphelpertest.subtable.shard.Shardable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("seed_before_plan_land")
public class SeedBeforePlanLand implements Serializable, Shardable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId("id")
    private Long id;

    @TableField("tnt_id")
    private String tntId;

    @TableField("idytp_cd")
    private String idytpCd;

    @TableField("company_id")
    private String companyId;

    @TableField("company_name")
    private String companyName;

    @TableField("land_no")
    private String landNo;

    @TableField("plant_cycle_id")
    private Long plantCycleId;

    @Override
    public String suffix() {
        return SuffixPreConsts.SUFFIX_PRE + plantCycleId;
    }
}
